<?php
class ORMv1packageitem extends ORMBase {
  public function __construct() {
    parent::__construct('v1packageitem');
  }

  public function __toEpObject($myManager, $epObject, $object) {
    $epObject->trackId = isset($object->trackId) ? $object->trackId : '';
    $epObject->sample_id = isset($object->sample_id) ? $object->sample_id : 0;
    $epObject->quantity = isset($object->quantity) ? $object->quantity : 0;
    $epObject->total = isset($object->total) ? $object->total : 0;
    $epObject->otherId = isset($object->otherId) ? $object->otherId : '';
    $epObject->package_id = isset($object->package_id) ? $object->package_id : 0;
    return $epObject;
  }

  public function __toObject($myManager, $epObject, $object) {
    $object->id = $epObject->oid;
    $object->trackId = $epObject->trackId;
    $object->sample_id = $epObject->sample_id;
    $object->quantity = $epObject->quantity;
    $object->total = $epObject->total;
    $object->otherId = $epObject->otherId;
    $object->package_id = $epObject->package_id;
    return $object;
  }
}
?>
